using System;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 物料改制主表
    /// </summary>

    public class MaterialReform
    {
        /// <summary>
        ///  改制ID(主键)
        /// </summary>
    
        public Guid ReformID { get; set; }

        /// <summary>
        ///  1-主流程 2-子流程
        /// </summary>
        public int? Type { get; set; }

        /// <summary>
        ///  流程编号
        /// </summary>
        public string InstanceId { get; set; }

        /// <summary>
        /// 父流程编号
        /// </summary>
        public string UpperInstanceId { get; set; }

        /// <summary>
        /// 流程状态
        /// </summary>
        public int? ProcessStatus { get; set; }

        /// <summary>
        ///  工厂编号
        /// </summary>
        public string FactoryCode { get; set; }

        /// <summary>
        ///  渠道编号
        /// </summary>
        public string ChannelCode { get; set; }

        /// <summary>
        ///  发起时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        ///  发起人工号
        /// </summary>
        public string CreateUser { get; set; }

        /// <summary>
        ///  发起人姓名
        /// </summary>
        public string CreateUserName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 更新人工号
        /// </summary>
        public string UpdateUser { get; set; }

        /// <summary>
        /// 主流程计划步骤的待办任务ID
        /// </summary>
        public Guid TaskId { get; set; }

        /// <summary>
        /// 子流程回写结果
        /// </summary>
        public string HSResult { get; set; } = string.Empty;

        /// <summary>
        /// sap回调 flag
        /// </summary>
        public bool SapCallBackFlag { get; set; }

        /// <summary>
        /// 费控接口数据保存
        /// </summary>
        public string CostControlCallBackResult { get; set; }

        /// <summary>
        /// 费控回调 flag
        /// </summary>
        public bool CostControlCallBackFlag { get; set; }

        /// <summary>
        /// 加工费费控结构回调数据
        /// </summary>
        public string ProcessCostCallBackResult { get; set; }

        /// <summary>
        /// 费控加工费回调flag
        /// </summary>
        public bool ProcessCostCallBackFlag { get; set; }

    }
}
